/**
 * Created by Vector on 17/7/23.
 */

var fs = require('fs');
var zlib = require('zlib');

// 文件解压
fs.createReadStream('input.txt.gz')
.pipe(zlib.createGunzip())
.pipe(fs.createWriteStream('input02.txt'));

console.log('文件解压完成');